import { createApp } from "vue";
import "./style.css";
import router from "./router";
import App from "./App.vue";
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
import echarts from './plugins/echarts'
import { eventBus, modelStates } from './plugins/eventBus'

window.CESIUM_BASE_URL = '../public/Build/Cesium/'

const app = createApp(App);
app.use(router);
app.use(ElementPlus);

// 将echarts挂载到全局属性上
app.config.globalProperties.$echarts = echarts;
// 将Cesium挂载到全局属性上
app.config.globalProperties.$Cesium = Cesium;
// 将事件总线挂载到全局属性上
app.config.globalProperties.$eventBus = eventBus;
app.config.globalProperties.$modelStates = modelStates;

app.mount("#app");
